package com.xiaodou.mjf.entity.${moduleName};

<#list entity.imports as import>
import ${import};
</#list>

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import java.io.Serializable;

import com.xiaodou.mjf.entity.${moduleName}.base.${entity.className}Base;

/***
 *
 * ${entity.className}实体定义
 * @author XiaoDou.com Code Generator
 * @version 1.0
 * ${currentDate}
 *
 */
@Entity
@DynamicInsert @DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ${entity.className} extends ${entity.className}Base implements Serializable{

	/**序列化标识*/
	private static final long serialVersionUID = ${entity.serialNum?c}L;

    public ${entity.className}(){}

    public ${entity.className}(String id){
        this.id = id;
    }

}
